/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
{
    var arVersion = navigator.appVersion.split("MSIE")
    var version = parseFloat(arVersion[1])
    if ((version >= 5.5) && (document.body.filters))
    {
        for(var j=0; j<document.images.length; j++)
        {
            var img = document.images[j]
            var imgName = img.src.toUpperCase()
            if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
            {
                var imgID = (img.id) ? "id='" + img.id + "' " : ""
                var imgClass = (img.className) ? "class='" + img.className + "' " : ""
                var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
                var imgStyle = "display:inline-block;" + img.style.cssText
                if (img.align == "left") imgStyle = "float:left;" + imgStyle
                if (img.align == "right") imgStyle = "float:right;" + imgStyle
                if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
                var strNewHTML = "<span " + imgID + imgClass + imgTitle
                    + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
                    + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
                    + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
                img.outerHTML = strNewHTML
                j = j-1
            }
        }
    }
}
           

function gg(){
    var d1=document.getElementById("c1");
    var d2=document.getElementById("c2");
    var d3=document.getElementById("c3");
    var speed=3000;
    function moves(){
        if(3928-d1.scrollLeft<=0){
            d1.scrollLeft=d1.scrollLeft-d2.offsetWidth;}
        else{
            d1.scrollLeft=d1.scrollLeft+982;
        }
        n=(d1.scrollLeft/982)+1;
        document.getElementById('pa1').src='images/ppsub1.png';
        document.getElementById('pa2').src='images/ppsub1.png';
        document.getElementById('pa3').src='images/ppsub1.png';
        document.getElementById('pa4').src='images/ppsub1.png';
        if(n==5){
            n=1;
        }
        document.getElementById('pa'+n).src='images/ppsub2.png';
    }
    var MyMar=setInterval(moves,speed);
    d1.onmouseover=function() {clearInterval(MyMar)};
    d1.onmouseout=function() {MyMar=setInterval(moves,speed)};
}

function moves1(){
    document.getElementById("c1").scrollLeft=0;
}
function moves2(){
    document.getElementById("c1").scrollLeft=982;
}
function moves3(){
    document.getElementById("c1").scrollLeft=1964;
}
function moves4(){
    document.getElementById("c1").scrollLeft=2946;
}
function display_pp(n){
    document.getElementById('pa1').src='images/ppsub1.png';
    document.getElementById('pa2').src='images/ppsub1.png';
    document.getElementById('pa3').src='images/ppsub1.png';
    document.getElementById('pa4').src='images/ppsub1.png';
    document.getElementById('pa'+n).src='images/ppsub2.png';
}